<select>
    <% for ( var i in obj) { %>
       <option value=<%= obj[i].id %>><%= obj[i].name %></option>
    <% } %>
</select>
